package com.jzo2o.orders.dispatch.demo;

import com.jzo2o.orders.dispatch.model.dto.ServeProviderDTO;

import java.util.List;

/**
 * 派单规则接口
 *
 * @author Mr.Z
 * @version 1.0
 * @date 2023/11/24 5:56
 */
public interface IProcessRule {

	/**
	 * 根据派单规则过滤服务人员
	 *
	 * @param: serveProviderDTOS
	 * @return:
	 */
	List<ServeProviderDTO> filter(List<ServeProviderDTO> serveProviderDTOS);

	/**
	 * 获取下一个规则
	 *
	 * @return:
	 */
	IProcessRule next();
}
